<template>
  <router-view v-if="!isRefreshing" v-slot="{ Component }">
    <keep-alive>
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<script setup>
import useStore from '@/store'
import { computed } from 'vue'
const { menuStore } = useStore()

// push/replace 刷新问题
const isRefreshing = computed(() => {
  return menuStore.isRefreshing
})

</script>

<style lang="less" scoped>
.layout-main {
  padding: 0 !important;
  overflow-y: hidden;
}
</style>
